import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/base";

// 查询用例日志列表
export function listJobLog(query) {
  return request({
    url: '/tms/job/log/',
    method: 'get',
    params: query
  })
}

// 查询用例详细
export function getJobLog(id) {
  return request({
    url: `/tms/job/log/${parseStrEmpty(id)}/`,
    method: 'get'
  })
}

// 删除执行日志
export function delJobLog(id) {
  return request({
    url: `/tms/job/log/${id}/`,
    method: 'delete'
  })
}

// 修改用例执行日志
export function updateJobLog(data) {
  return request({
    url: `/tms/job/log/${data.id}/`,
    method: 'put',
    data: data
  })
}